package com.huangpuweb.api.model;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class BlmqBuildInfoRowMapper implements RowMapper<BlmqBuildInfo>{



	@Override
	public BlmqBuildInfo mapRow(ResultSet rs, int rowNum) throws SQLException {
		BlmqBuildInfo  lj= new BlmqBuildInfo();
		lj.setBUILD_ID(rs.getInt("BUILD_ID"));
		lj.setBUILD_NAME(rs.getString("BUILD_NAME"));
		lj.setBUILD_ADDR(rs.getString("BUILD_ADDR"));
		lj.setVILLAGE(rs.getString("VILLAGE"));
		lj.setAREA_CODE(rs.getString("AREA_CODE"));
		lj.setUSE_NATURE(rs.getString("USE_NATURE"));
		lj.setBUILDING_HIGH(rs.getInt("BUILDING_HIGH"));
		lj.setBUILDING_AGE(rs.getInt("BUILDING_AGE"));
		lj.setBUILDING_SORT(rs.getString("BUILDING_SORT"));
		lj.setCOMPLETE_DATE(rs.getString("COMPLETE_DATE"));
		lj.setOWNER_NAME(rs.getString("OWNER_NAME"));
		lj.setOWNER_TEL(rs.getString("OWNER_TEL"));
		lj.setOWNER_UNIT(rs.getString("OWNER_UNIT"));
		lj.setPROPERTY(rs.getString("PROPERTY"));
		lj.setPROPERTY_NAME(rs.getString("PROPERTY_NAME"));
		lj.setPROPERTY_TEL(rs.getString("PROPERTY_TEL"));
		lj.setBUILD_DXRERIOR(rs.getString("BUILD_DXRERIOR"));
		lj.setWALL_HIGH(rs.getInt("WALL_HIGH"));
		lj.setWALL_AREA(rs.getInt("WALL_AREA"));
		lj.setWALL_LIFE(rs.getInt("WALL_LIFE"));
		lj.setWALL_DATE(rs.getString("WALL_DATE"));
		lj.setSTRUCTURE(rs.getString("STRUCTURE"));
		lj.setWALL_TYPE(rs.getString("WALL_TYPE"));
		lj.setGLASS_TYPE(rs.getString("GLASS_TYPE"));
		lj.setWALL_DXRERIOR(rs.getString("WALL_DXRERIOR"));
		lj.setNEXT_CHECK_TIME(rs.getTimestamp("NEXT_CHECK_TIME"));
		lj.setBUILD_TAG(rs.getString("BUILD_TAG"));
		lj.setLONGITUDE(rs.getFloat("LONGITUDE"));
		lj.setLATITUDE(rs.getFloat("LATITUDE"));
		lj.setCREATE_TIME1(rs.getString("CREATE_TIME1"));
		return lj;
	}

}
